import koa from 'koa';
import Rounter from 'koa-router';

let app = new koa();
let router = new Rounter();

app.use(async (ctx, next) => {
    let time = new Date().toISOString();
    console.log(`[REQUEST] [${timestamp}] [${ctx.method}] [${ctx.url}]`);
    await next();

})
app.use(async (ctx, next) => {
    if (ctx.method === 'POST') {

    }
})

router.post('/api/data', async (ctx) => {

})
